#include <sstream>
#include <openssl/err.h>
#include <sys/types.h>      // typy danych do wywolan systemowych
#include <sys/socket.h>     // gniazda BSD
#include <netinet/in.h>     // adresy
#include <netdb.h>
#include <errno.h>
#include <boost/foreach.hpp>
#include "SSLServer.h"
#include "../CommError.h"

#define foreach BOOST_FOREACH

using namespace kc_sf;

// -------------------------------------------------------------- //

SSLServer::SSLServer( int port, int max_connections, CommRequestHandler *client_handler )
: TCPServer ( port, max_connections, client_handler )
{
}

// -------------------------------------------------------------- //

SSLServer::~SSLServer()
{
	closeAllConnections ();

	if(tcp_top_client_handler)
	{
		delete tcp_top_client_handler;
		tcp_top_client_handler = NULL;
	}
}
